<?php
$uri = get_base_url() . url_title($product->category, 'dash', TRUE) . '-c' . $product->categories_id . '/' . get_uri_product($product->product_name, $product->id);
$image = is_null($product->image_name) ? '/images/no_image.jpg' : '/images/products/' . $product->image_name;
?>
<div class="row-fluid spct ">
    <div class="span12">

        <div class="row-fluid">
            <div class="span5">
                <a rel="example_group" href="<?php echo $image; ?>">
                    <img src="<?php echo $image; ?>" alt="">
                </a>
            </div>
            <div class="span7 detail_sp">
                <ul class="description">
                    <li><h1 class="title"><?php echo $product->product_name;?></h1></li>
                    <li>
                        <table class="properties" style="width: 100%;">
                            <tbody><tr>
                                <td>Mã sản phẩm <span class="pull-right">:</span></td>
                                <td class="green">MS <?php echo $product->id;?></td>
                            </tr>
                            <tr>
                                <td>Giá <span class="pull-right">:</span></td>
                                <td class="red">Liên hệ</td>
                            </tr>
                            <tr>
                                <td>Nhóm sản phẩm <span class="pull-right">:</span></td>
                                <td class="green"><?php echo $product->category;?></td>
                            </tr>
                            <tr>
                                <td>Lượt xem <span class="pull-right">:</span></td>
                                <td class="green"><?php echo $product->viewed;?> lượt</td>
                            </tr>
                            </tbody>
                        </table>

                    </li>
                    <li>
                        <ul class="product_images">
                        </ul>
                    </li>
                </ul>

            </div>
        </div>
        <div class="row-fluid">
            <div class="span12 gtsp_a">
                <p class="gtsp">Giới thiệu sản phẩm</p>
            </div>
        </div>
        <div class="row-fluid ">
            <div class="span12">
                <p>
                    <?php echo $product->description;?>
                </p>

            </div>
        </div>
    </div>
</div>
<hr>
<?php
if (isset($products_related))
    echo $products_related;
?>